<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags" %>
<%@ page import="org.springframework.security.ui.AbstractProcessingFilter" %>
<%@ page import="org.springframework.security.AuthenticationException" %>
<authz:authorize ifAllGranted="ROLE_USER">
  <c:redirect url="index.jsp"/>
</authz:authorize>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <link href="<c:url value="/main.css"/>" rel="stylesheet" type="text/css"/>
  <title>Micropayment Consumer</title>
</head>
<body>
<div id="container">
  <div id="content">
      <form action="<c:url value="/service/micropayment/gateway"/>" method="POST">
        <p><label>Transaction amount: <input type='text' name='transaction_amount' value="1">
            	<select name="currency_code">
                    <option value="EUR">€ (Euro)</option>
                    <option value="USD">$ (Dolar)</option>
                </select>
            </label></p>
        <p><label>Transaction description: <input type='text' name='transaction_description' value="make water sink"></label></p>
        <input type='hidden' name='transaction_timestamp' value="<%= String.valueOf(System.currentTimeMillis()) %>">
        <p><input name="send" value="send" type="submit"></p>
      </form>
    <p class="footer"><a href="http://www.gruposp2p.org">Energía y Red</a></p>
  </div>
</div>
</body>
</html>